package com.codebo.homiematch.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.codebo.homiematch.model.dto.TeamDTO;
import com.codebo.homiematch.model.dto.TeamJoinRequest;
import com.codebo.homiematch.model.dto.TeamListRequest;
import com.codebo.homiematch.model.entity.Team;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codebo.homiematch.model.vo.TeamVO;

import java.io.Serializable;

/**
* @author 25912
* @description 针对表【team(队伍信息)】的数据库操作Service
* @createDate 2025-07-21 17:39:32
*/
public interface TeamService extends IService<Team> {

    Page<TeamVO> getTeamList(TeamListRequest teamListRequest);

    TeamVO getTeamVO(Team team);

    void create(TeamDTO teamDTO);

    boolean joinTeam(TeamJoinRequest teamJoinRequest);

    boolean isJoin(long teamId, long userId);
}
